package hero.mps.web.school_major.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("school_major")
public class SchoolMajor {
    @TableId(type = IdType.AUTO)
    /**
     * 专业id
     */
    private Integer majorId;

    /**
     * 学院id
     */
    private Integer collegeId;

    /**
     * 专业名称
     */
    private String majorName;

    /**
     * 学院名称
     */
    @TableField(exist = false)
    private String collegeName;

    /**
     * 序号
     */
    private Integer orderNum;
}
